﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BL;
using DomainModel;

namespace BLTest
{
    class BLTestTool
    {
        public static void CreateDummy(BaseCustomer dummy)
        {
            dummy.email = "bob@ucsd.edu";
            dummy.first_name = "john";
            dummy.last_name = " doe";
            dummy.address = "123 hello street";
            dummy.state = "ca";
            dummy.zip = 92122;
            dummy.city = "san diego";
          //  dummy.webmaster = 0;
            dummy.blockuser = 0;
        }

        public static void CreateBrazilDummy(BaseCustomer dummy)
        {
            dummy.email = "bob@brazil.com";
            dummy.first_name = "bra";
            dummy.last_name = " zil";
            dummy.address = "123 hello street";
            dummy.state = "someState";
            dummy.zip = 11111;
            dummy.city = "SomeBrazilCity";
            //  dummy.webmaster = 0;
            dummy.blockuser = 0;
        }

        public static void CreateDummyOrder(Order order)
        {
            order.customer_id = 0;
        }

        public static void CreateDummyItems(OrderItem item)
        {
            List<string> errors = new List<string>();
            item.order_id = 0;
            item.product_id = 5;
            item.quantity = 2;
          //  item.sub_total = BLTv.GetProductPrice(item.product_id, ref errors);
        }

      
    }
}
